﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IDAL;

namespace DAL
{
	public partial class DBSession 
    {
        public int SaveChanges()
        {
            return new DBContextFactory().GetDbContext().SaveChanges();
        }
    }

	public partial class DBSession:IDBSession
    {
		#region 01 数据接口 ICategory_DAL
	    private	ICategory_DAL iCategory_DAL;
		public ICategory_DAL ICategory_DAL
		{
			get
			{
				if(iCategory_DAL==null)
					iCategory_DAL= new Category_DAL();
				return iCategory_DAL;
			}
			set
			{
				iCategory_DAL= value;
			}
		}
		#endregion

		#region 02 数据接口 ICategoryProperty_DAL
	    private	ICategoryProperty_DAL iCategoryProperty_DAL;
		public ICategoryProperty_DAL ICategoryProperty_DAL
		{
			get
			{
				if(iCategoryProperty_DAL==null)
					iCategoryProperty_DAL= new CategoryProperty_DAL();
				return iCategoryProperty_DAL;
			}
			set
			{
				iCategoryProperty_DAL= value;
			}
		}
		#endregion

		#region 03 数据接口 ILanguageType_DAL
	    private	ILanguageType_DAL iLanguageType_DAL;
		public ILanguageType_DAL ILanguageType_DAL
		{
			get
			{
				if(iLanguageType_DAL==null)
					iLanguageType_DAL= new LanguageType_DAL();
				return iLanguageType_DAL;
			}
			set
			{
				iLanguageType_DAL= value;
			}
		}
		#endregion

		#region 04 数据接口 IProduct_CN_DAL
	    private	IProduct_CN_DAL iProduct_CN_DAL;
		public IProduct_CN_DAL IProduct_CN_DAL
		{
			get
			{
				if(iProduct_CN_DAL==null)
					iProduct_CN_DAL= new Product_CN_DAL();
				return iProduct_CN_DAL;
			}
			set
			{
				iProduct_CN_DAL= value;
			}
		}
		#endregion

		#region 05 数据接口 IProduct_DE_DAL
	    private	IProduct_DE_DAL iProduct_DE_DAL;
		public IProduct_DE_DAL IProduct_DE_DAL
		{
			get
			{
				if(iProduct_DE_DAL==null)
					iProduct_DE_DAL= new Product_DE_DAL();
				return iProduct_DE_DAL;
			}
			set
			{
				iProduct_DE_DAL= value;
			}
		}
		#endregion

		#region 06 数据接口 IProduct_EN_DAL
	    private	IProduct_EN_DAL iProduct_EN_DAL;
		public IProduct_EN_DAL IProduct_EN_DAL
		{
			get
			{
				if(iProduct_EN_DAL==null)
					iProduct_EN_DAL= new Product_EN_DAL();
				return iProduct_EN_DAL;
			}
			set
			{
				iProduct_EN_DAL= value;
			}
		}
		#endregion

		#region 07 数据接口 IProduct_ES_DAL
	    private	IProduct_ES_DAL iProduct_ES_DAL;
		public IProduct_ES_DAL IProduct_ES_DAL
		{
			get
			{
				if(iProduct_ES_DAL==null)
					iProduct_ES_DAL= new Product_ES_DAL();
				return iProduct_ES_DAL;
			}
			set
			{
				iProduct_ES_DAL= value;
			}
		}
		#endregion

		#region 08 数据接口 IProduct_FR_DAL
	    private	IProduct_FR_DAL iProduct_FR_DAL;
		public IProduct_FR_DAL IProduct_FR_DAL
		{
			get
			{
				if(iProduct_FR_DAL==null)
					iProduct_FR_DAL= new Product_FR_DAL();
				return iProduct_FR_DAL;
			}
			set
			{
				iProduct_FR_DAL= value;
			}
		}
		#endregion

		#region 09 数据接口 IProduct_IT_DAL
	    private	IProduct_IT_DAL iProduct_IT_DAL;
		public IProduct_IT_DAL IProduct_IT_DAL
		{
			get
			{
				if(iProduct_IT_DAL==null)
					iProduct_IT_DAL= new Product_IT_DAL();
				return iProduct_IT_DAL;
			}
			set
			{
				iProduct_IT_DAL= value;
			}
		}
		#endregion

		#region 10 数据接口 IProduct_PT_DAL
	    private	IProduct_PT_DAL iProduct_PT_DAL;
		public IProduct_PT_DAL IProduct_PT_DAL
		{
			get
			{
				if(iProduct_PT_DAL==null)
					iProduct_PT_DAL= new Product_PT_DAL();
				return iProduct_PT_DAL;
			}
			set
			{
				iProduct_PT_DAL= value;
			}
		}
		#endregion

		#region 11 数据接口 IProduct_RU_DAL
	    private	IProduct_RU_DAL iProduct_RU_DAL;
		public IProduct_RU_DAL IProduct_RU_DAL
		{
			get
			{
				if(iProduct_RU_DAL==null)
					iProduct_RU_DAL= new Product_RU_DAL();
				return iProduct_RU_DAL;
			}
			set
			{
				iProduct_RU_DAL= value;
			}
		}
		#endregion

		#region 12 数据接口 IProductProperty_DAL
	    private	IProductProperty_DAL iProductProperty_DAL;
		public IProductProperty_DAL IProductProperty_DAL
		{
			get
			{
				if(iProductProperty_DAL==null)
					iProductProperty_DAL= new ProductProperty_DAL();
				return iProductProperty_DAL;
			}
			set
			{
				iProductProperty_DAL= value;
			}
		}
		#endregion

    }

}